/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package shaman.dialog.selectfolder;

import javax.swing.JFrame;

/**
 *
 * @author shaman
 */
public class FolderSelect {
    public static String show(JFrame parent, String title)
    {
        FolderSelectionDialog fsd = new FolderSelectionDialog(parent, true);
        fsd.setTitle(title);
        if (parent != null)
        {
            fsd.setLocationRelativeTo(parent);
        }
        fsd.setVisible(true);
        String result = fsd.getSelectedPath();
        fsd.dispose();
        return result;
    }
}
